//
//  KKListViewManager.m
//  KKListViewDemo
//
//  Created by liaozhenming on 16/11/4.
//  Copyright © 2016年 liaozhenming. All rights reserved.
//

#import "KKListViewTools.h"

@implementation KKListViewSectionItem

+ (instancetype)kk_sectionItemWithKey:(NSString*)key cellItems:(NSArray*)cellItems {
    return [[KKListViewSectionItem alloc] initWithKey: key cellItems: cellItems];
}
- (instancetype)initWithKey:(NSString*)key cellItems:(NSArray*)cellItems {
    
    self = [super init];
    if (self) {
        self.kk_key = key;
        self.kk_cellItems = cellItems;
    }
    return self;
}

@end




@implementation KKListViewCellItem

+ (instancetype)kk_cellItemWithKey:(NSString*)key rowHeight:(CGFloat)rowHeight cellClassName:(NSString*)cellClassName {
    return [[KKListViewCellItem alloc] initWithKey: key rowHeight: rowHeight cellClassName: cellClassName];
}
- (instancetype)initWithKey:(NSString*)key rowHeight:(CGFloat)rowHeight cellClassName:(NSString*)cellClassName {
    
    self = [super init];
    if (self) {
        self.kk_key = key;
        self.kk_rowHeight = rowHeight;
        self.kk_cellClassName = cellClassName;
    }
    return self;
}


+ (instancetype)kk_cellItemWithKey:(NSString*)key cellSize:(CGSize)cellSize cellClassName:(NSString*)cellClassName {
    
    return [[KKListViewCellItem alloc] initWithKey:key cellSize: cellSize cellClassName: cellClassName];
}
- (instancetype)initWithKey:(NSString *)key cellSize:(CGSize)cellSize cellClassName:(NSString *)cellClassName {
    
    self = [super init];
    if (self) {
        self.kk_key = key;
        self.kk_cellSize = cellSize;
        self.kk_cellClassName = cellClassName;
    }
    return self;
}

@end